package com.cqut.ktpspring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqut.ktpspring.pojo.Answer;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AnswerMapper extends BaseMapper<Answer> {

    void addAnswer(String userId, String wId);

    void revise(String userId, String wId, Integer score);

    void submit(String userId, String wId, String answerText);

    void changeSubmit(String wId);

    void changeJudge(String wId);

    @Delete("delete from student_work_info where work_id=#{wId}")
    void deleteBywId(String wId);


}
